package com.zzty.springmybatis.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zzty.springmybatis.DAO.ClassGroupDAO;
import com.zzty.springmybatis.entity.ClassGroup;
import com.zzty.springmybatis.entity.User;
import com.zzty.springmybatis.service.GroupService;
@Service
public class GroupServiceImpl implements GroupService {
	@Autowired
	private ClassGroupDAO ClassGroupDAO;

	
	@Override
	public List<User> selectall(String clazzId) {
		return this.ClassGroupDAO.selectall(clazzId);
	}


	@Override
	public Integer insertGroup(ClassGroup group) {
		return this.ClassGroupDAO.insertGroup(group);
	}


	@Override
	public Integer count(Integer clazzId) {
		return this.ClassGroupDAO.count(clazzId);
	}


	@Override
	public Integer delete(Integer clazzId) {
		return this.ClassGroupDAO.delete(clazzId);
	}

}
